package com.weihong.it.edi.controller;

import com.weihong.it.edi.pojo.Supplier;
import com.weihong.it.edi.service.sqlserver.SupplierService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * ${DESCRIPTION}
 *
 * @author muxiaoyu
 * @create 2017-02-20 16:25
 **/
@Controller
@RequestMapping("/supplier")
public class SupplierController {
    @Autowired
    private SupplierService supplierService;
    @RequestMapping("/findAllSupplier.json")
    @ResponseBody
    public List<Supplier> findAllSupplier() {
        List<Supplier> suppliers=supplierService.findAllSupplier();
        return suppliers;
    }
}
